aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/[username]/invoice
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-04-18 11:03:45 -0700
committerAdam Soltys <[email protected]>2024-04-18 11:03:45 -0700
commit845d87e5af2b31646f6684180651dbb01fb4ff71 (patch)
treeb504651397211c05f9d1bcec76eb94387360d1ba /src/routes/(app)/[username]/invoice
parentbb9b47e90d9f371d2ebbaa12c0f0717bce295f25 (diff)
downloadcoinos-ui-845d87e5af2b31646f6684180651dbb01fb4ff71.tar.gz
coinos-ui-845d87e5af2b31646f6684180651dbb01fb4ff71.zip
pay now button
Diffstat (limited to 'src/routes/(app)/[username]/invoice')
-rw-r--r--src/routes/(app)/[username]/invoice/[id]/+page.svelte22
1 files changed, 2 insertions, 20 deletions
diff --git a/src/routes/(app)/[username]/invoice/[id]/+page.svelte b/src/routes/(app)/[username]/invoice/[id]/+page.svelte
index d2a54425..c1f55fd0 100644
--- a/src/routes/(app)/[username]/invoice/[id]/+page.svelte
+++ b/src/routes/(app)/[username]/invoice/[id]/+page.svelte
@@ -87,7 +87,6 @@
let subbed;
onMount(async () => {
- $showQr = $showQr && 1;
if (browser) {
last.subscribe((v) => {
if (!v || subbed) return;
@@ -121,7 +120,7 @@
</script>
<div class="invoice container mx-auto max-w-xl px-4 space-y-2">
- {#if $showQr === 1}
+ {#if $showQr}
<div>
<a
href={[types.bitcoin, types.liquid].includes(invoice.type)
@@ -203,7 +202,7 @@
<button
class="w-full flex justify-center rounded-2xl border py-5 px-6 hover:opacity-80"
- on:click={() => ($showQr = $showQr ? false : 2)}
+ on:click={() => ($showQr = !$showQr)}
>
<Icon icon="qr" style="w-8 mr-1 invert my-auto" />
<div class="my-auto">
@@ -267,23 +266,6 @@
</div>
</div>
{/if}
-
- {#if $showQr === 2}
- <div>
- <a
- href={[types.bitcoin, types.liquid].includes(invoice.type)
- ? invoice.text
- : "lightning:" + invoice.text}
- >
- <img
- {src}
- class="mx-auto z-10 shadow-inner rounded-2xl"
- bind:this={qr}
- alt={txt}
- />
- </a>
- </div>
- {/if}
</div>
<style>